/* 盒子尺寸重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 清除浮动 */
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

/* 浮动 */
.left {
  float: left;
}

.right {
  float: right;
}

/* 截断文本 */
.truncate-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}

/* 多行截断文本 */
.truncate-multext {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 去除input样式 */

input,
button {
  background: none;
  outline: none;
  border: 0px;
  padding-left: 4px;
}

/* 字号 */
h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

/* 蒙层 */
.popup-bg {
  position: absolute;
  z-index: 4;
  width: 100%;
  height: 100%;
  background-color: #222222;
  opacity: 0.3;
  display: none;
}
